package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class SetHeaderInformationList {

    private int beginIndex;
    private int endIndex;
    private List<SetHeaderInformation> setHeaderInformationList;

    public SetHeaderInformationList(List<SetHeaderInformation> setHeaderInformationList) {
        this.beginIndex = setHeaderInformationList.get(0).getBeginIndex();
        this.endIndex = setHeaderInformationList.get(setHeaderInformationList.size() - 1).getEndIndex();
        this.setHeaderInformationList = setHeaderInformationList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return setHeaderInformationList.size();
    }

    public SetHeaderInformation get(int index) {
        return setHeaderInformationList.get(index);
    }

}
